import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto, ResSuccessDto } from 'src/shared-module/dto/base.dto';
import { AwardItem } from '../entities/award.entity';

export class GetAwardItemReqDto {
  @ApiProperty({
    required: true,
  })
  run_id: string;
}

export class GetAwardItemResSuccessDto extends PartialType(ResSuccessDto) {
  @ApiProperty({
    required: true,
    default: {
      name: '',
      tomato: 0,
    },
  })
  award: AwardItem;
}

export class GetAwardItemResFailDto extends PartialType(ResFailDto) {}
